<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="js/security.js"></script>
<script type="text/javascript" src="js/efects.js"></script>
<link rel="stylesheet" href="css/styles.css" type="text/css">
<title>Everything</title>
</head>
<body style="margin: 5px">
	<div id="header" align="center">

		<div id="label" style="font-size: xx-large;">Everything</div>

		<c:if test="${user==null}">
			<div style="vertical-align: bottom; width: 50px;">
				<div onclick="showLoginForm()" class="authorizationButtons">Log
					in</div>
				<div onclick="showRegForm()" class="authorizationButtons">Registration</div>
			</div>


			<div id="loginForm" class="authorizationForms">
				<form>
					Login: <input type="text" id="login" value="admin" maxlength="20"><br>
					Password: <input type="password" id="password" value="admin"
						maxlength="20"> <br> <input type="button"
						onClick="loginFunc()" value="Log in">
				</form>
				<div style="height: 25px; width: 200px;" id="login_mes"></div>
			</div>
			<div id="registrationForm" class="authorizationForms">
				<form>
					Login: <input type="text" id="regLogin" value="user" maxlength="20"><br>
					Password: <input type="password" id="regPassword" value="user"
						maxlength="20"> <br> Confirm password: <input
						type="password" id="regConfPassword" value="user" maxlength="20">
					<br> Name: <input type="text" id="regName" value="User"
						maxlength="20"> <br> Mail: <input type="text"
						id="regMail" value="user@gmail.com" maxlength="20"> <br>
					<input type="button" onClick="registrFunc()" value="Registrate">
				</form>
				<div style="height: 25px; width: 200px;" id="registr_mes"></div>
			</div>
		</c:if>

	</div>

	<div id="glass" onclick="disposeGlass()" title="Закрыть"></div>


	<div id="userInfo">
		<c:if test="${user!=null}">
			<div id="u" class="userInfoButtons">
				<c:out value="${user.login}"></c:out>
			</div>
			<div id="p" class="userInfoButtons">    Профиль  </div>
			<form action="logout.htm" class="userInfoButtons">
				<input type="submit" value="Log out" class="blackSmallButton">
			</form>
		</c:if>
		<c:if test="${user==null}"> Гость </c:if>
	</div>








</body>
</html>